<?php
use Mirage\Abstraction\AbstractForm;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of TaskForm
 *
 * @author bry
 */
class TaskForm extends AbstractForm{
    
    public $date;
    public $dateLabel;
    public $task;
    public $taskLabel;
    public $status;
    public $statusLabel;
    public $problem;
    public $solution;
    public $remarks;

    public function init() {
        if(Mirage\Web::app()->getActionID() == 'add') {
            $this->date = $this->inputTextField('date', array('readonly'=>'readonly','value'=>date('Y-m-d')));
        } else {
            $this->date = $this->inputTextField('date',array('readonly'=>'readonly'));
        }
        
        $this->task = $this->inputTextField('task');
        $this->status = $this->inputTextField('status');
        $this->taskLabel = $this->label('task');
        $this->dateLabel = $this->label('date');
        $this->statusLabel = $this->label('status');
    }
}

?>
